package com.bcu.team.comment.service.serviceImpl;

import com.bcu.team.comment.entity.Song;
import com.bcu.team.comment.mapper.SongMapper;
import com.bcu.team.comment.service.SongService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SongServiceImpl implements SongService {

    @Resource
    private SongMapper songMapper;

    @Override
    public List<Song> getAll() {
        return songMapper.selectAll();
    }

    @Override
    public List<Song> getAllSongsByUserId(Integer userId) {
        return songMapper.selectSongsByUserId(userId);
    }
}
